package com.model.dome1;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class HashSetDeno1 {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap<String, String>();
        map.put("大黄","打黑");
        map.put("大黑","打黄");
        map.put("大熊","打绿");
        map.put("大屌","打飞机");

//        Set<String> keyset=map.keySet();
//
//        for (String s : keyset) {
//            String value=map.get(s);
//            System.out.println(s+value);
//        }

        Set<Map.Entry<String, String>> entrySet = map.entrySet();
        for (Map.Entry<String, String> entry : entrySet) {
            String key = entry.getKey();
            String value = entry.getValue();
            System.out.println(key+value);
        }
    }
}
